<!doctype html>

<?php include("include/session.php"); ?>
<?php include_once "include/auxilery.php"; ?>
<html>
	<head>
		<title>movienight</title>
		<link rel="stylesheet" href="css/bootstrap.min.css">
		<link rel="stylesheet" href="css/datepicker.css">
		<link rel="stylesheet" href="css/movienight.css">
		<style>body { padding-top: 40px; }</style>
	</head>
	<body>

		<?php include "mn_header.php" ?>
		
		<?php
			if ($session->logged_in) {
				if (isset($_GET["movie_data"])) include "mn_movie.php";
                else if (isset($_GET["create"])) include "mn_create_movienight.php";
                else if (isset($_GET["profile"])) include "mn_profile.php";
                else if (isset($_GET["friends"])) include "mn_friends.php";
                else if (isset($_GET["notifications"])) include "mn_notifications.php";
                else if (isset($_GET["events"])) include "mn_events.php";
				else include "mn_home.php";
			}
			else {
				include "mn_not_registered.php";
			}
		?>
		
		<?php include "mn_footer.php" ?>
	
		<script src="js/jquery-1.7.2.min.js"></script>
		<script src="js/bootstrap.js"></script>
		<script src="js/bootstrap-datepicker.js"></script>
		<script src="js/movienight.js"></script>
	</body>
</html>